package com.webtest.mvctest2.dao;

import com.webtest.mvctest2.model.Customer;

import java.util.List;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2018/7/26 16:17
 */
public interface CustomerDao {
    List<Customer> getAll();

    void save(Customer customer);

    Customer get(Integer id);

    void delete(Integer id);

    /**
     * 返回和name相等的记录数
     * @param name
     * @return
     */
    long getCountWithName(String name);

    List<Customer> getForListWithCriteriaCustomer(CriteriaCustomer param);

    void update(Customer customer);
}
